* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: background 0.5s ease;
}
.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 20px;
}
.text-panel {
    text-align: center;
    margin-bottom: 20px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.text-line-1 {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-weight: bold;
}
.text-line-2 {
    font-size: 0.8rem;
    color: #FFFFFF;
    margin-bottom: 12px;
    opacity: 0.9;
}
.text-line-3 {
    font-size: 2rem;
}
.text-line-4 {
    font-size: 0.8rem;
    color: #FFFFFF;
    margin-bottom: 12px;
    opacity: 0.5;
}
.chart-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    position: relative;
    transition: background-color 0.3s ease;
}
.info-panel {
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-around;
}
.stock-info {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.current-value {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.profit-loss {
    font-size: 0.8rem;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.instructions {
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.5);
}
.controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.btn {
    padding: 10px 20px;
    background: linear-gradient(to right, #FFD700, #FFA500);
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
.btn:active {
    transform: translateY(0);
}
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #FFD700;
    z-index: 10;
}
.error {
    color: #ff4757;
    text-align: center;
    margin: 10px 0;
}
.config-panel {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 20px;
}
.config-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.config-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.config-item label {
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.config-item input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #FFD700;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
}
.config-item input[type="color"] {
    height: 40px;
    width: 60px;
    padding: 2px;
}
.config-item input[type="range"] {
    width: 100px;
}
.stock-config-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.stock-config {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    min-width: 300px;
}
.stock-config h3 {
    margin-bottom: 10px;
    text-align: center;
    color: #FFD700;
}